module.exports = { plugins: [ new webpack.ResolverPlugin([ new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin("bower.json", ["main"]) ], ["normal", "loader"]) ] };
<h2>其它插件</h2>
不是内置的插件可以通过npm来安装:
npm install component-webpack-plugin
装完之后可通过下面的方式去调用插件:
var ComponentPlugin = require("component-webpack-plugin"); module.exports = { plugins: [ new ComponentPlugin() ] }
延伸:
<ul>
<li><a href="https://webpack.github.io/docs/list-of-plugins.html">插件列表</a></li>
</ul>
完...